import React, { useState } from "react";

function ComplexCom() {
  const [num, setNum] = useState(0);
  return (
    <div
      style={{ height: "200px", width: "100%", backgroundColor: "blue" }}
      onClick={() => setNum(num + 1)}
    >
      ComplexCom{num}
    </div>
  );
}

export default ComplexCom;
